include ../../build/config.mk
DBS_DIR=$(INSTALL_DIR)/dbs
DBS_CONF_DIR=$(DBS_DIR)/conf/
SQLRELAY_CONF_DIR=$(INSTALL_DIR)/etc/sqlrelay.conf.d/


all:
	
install:
	sed  "s?INSTALL_DIR/?$(INSTALL_DIR)?g" datasync-zlog.conf > $(DBS_CONF_DIR)/datasync-zlog.conf
	sed  "s?INSTALL_DIR/?$(INSTALL_DIR)?g" sqlrelay-zlog.conf > $(DBS_CONF_DIR)/sqlrelay-zlog.conf
	sed  "s?INSTALL_DIR/?$(INSTALL_DIR)?g" dbs.service > $(DBS_CONF_DIR)/dbs.service
	cp dbs.conf $(SQLRELAY_CONF_DIR)  -f
	chmod 777 $(DBS_CONF_DIR)/sqlrelay-zlog.conf
	chmod 777 $(DBS_CONF_DIR)/datasync-zlog.conf
